package com.example.saiweisi.mapper.systemAdminMapper;

import com.example.saiweisi.controller.request.PageBaseRequest;
import com.example.saiweisi.model.News;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface NewsMapper {
    List<News> newslistByCondition(PageBaseRequest pageBaseRequest);

    void addnews(News news);

    void deletenews(Long newsId);

    News getById(Long newsId);

    void updatenews(News news);

    List<News> getall();

}
